package cn.pinming.dao;

import cn.pinming.entity.system.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * <p>系统用户数据层接口</p>
 *
 * @author wuwanggao@souche.com
 * @version 1.0
 */
@Repository
public interface SysUserRepository extends JpaRepository<SysUser, Integer>, JpaSpecificationExecutor<SysUser> {


    /**
     * 根据用户名称查找用户
     *
     * @param username
     * @return
     */
    SysUser findByUsername(String username);

}
